import { createRouter, createWebHashHistory } from 'vue-router'
import home from "../view/home.vue"
import edit from "../view/edit.vue"
const routes=[
    {
        path:"/",
        component:home,
        children:[
            {
                name:"edit",
                path:"edit/:article",
                component:edit
            }
        ]
    },
]
const route=createRouter({
    history: createWebHashHistory(),
    routes
})
export default route